package com.iqiyi.pps.epg.core.model.record;


public enum RecordVideoStatus {
    WAIT_DADIAN(100),IN_RECORD(200),RECORD_FAIL(201),
    MATERIAL_LIBRARY(300),MATERIAL_LIBRARY_FAIL(301), ABANDON(400);
    private int statusIndex;

    private RecordVideoStatus(int index) {
        statusIndex = index;
    }

    public int getStatusIndex() {
        return statusIndex;
    }

    public static RecordVideoStatus getTypeByIndex(int typeIndex) {
        for (RecordVideoStatus contentType : values()) {
            if (contentType.getStatusIndex() == typeIndex) {
                return contentType;
            }
        }
        return null;
    }
}
